package com.cloud.demo.producer.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <h3>提供者（生产者）入口</h3>
 * @author dragons
 * @date 2020/9/3 21:20
 */
@RestController
public class ProducerController {

    /**
     * 生产接口
     * @param content 内容
     * @return 信息
     */
    @RequestMapping(value = "/produce", method = {RequestMethod.GET, RequestMethod.POST})
    public String produce(String content) {
        return "I am producer, content:" + content;
    }
}
